From 320d1c615168695fe143e89e03709acc9472edf9 Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sun, 31 Jul 2016 12:02:21 +0100 Subject: Fix tab list sometimes not updating after a player leaves. (#3280) When a player leaves the game, their client handle has its state changed to csDestroyed. This should fix issue #3138 --- src/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/World.cpp b/src/World.cpp index 557e110d7..33bef4600 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -2548,7 +2548,7 @@ void cWorld::BroadcastPlayerListRemovePlayer(const cPlayer & a_Player, const cCl for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr) { cClientHandle * ch = (*itr)->GetClientHandle(); - if ((ch == a_Exclude) || (ch == nullptr) || !ch->IsLoggedIn() || ch->IsDestroyed()) + if ((ch == a_Exclude) || (ch == nullptr) || !ch->IsLoggedIn()) { continue; } -- cgit v1.2.3